import xadmin
from diarys.models import Diary


class DiarysAdmin(object):
    list_display = ['date', 'title', 'weather']
    search_fields = ['date', 'title', 'tags', 'weather', 'content']
    list_filter = ['date', 'title', 'weather']


xadmin.site.register(Diary, DiarysAdmin)
